#include "std.hpp"
#include "Player.hpp"

Player::Player()
{
#ifdef DEBUG
  std::cout << "Player::Player()\n";
#endif

  setName("");
  setIsOut(false);
}

Player::Player(const std::string playerName, const bool isOut)
{
#ifdef DEBUG
  std::cout << "Player::Player(const std::string, const bool)\n";
#endif

  setName(playerName);
  setIsOut(isOut);
}

Player::~Player()
{
#ifdef DEBUG
  std::cout << "Player::~Player()\n";
#endif
}

std::string Player::getName() const
{
#ifdef DEBUG
  std::cout << "Player::getName()\n";
#endif

  return playerName_;
}

void Player::setName(const std::string playerName)
{
#ifdef DEBUG
  std::cout << "Player::setName(const std::string)\n";
#endif

  playerName_ = playerName;
}

bool Player::getIsOut() const
{
#ifdef DEBUG
  std::cout << "Player::getIsOut()\n";
#endif

  return isOut_;
}

void Player::setIsOut(const bool isOut)
{
#ifdef DEBUG
  std::cout << "Player::setIsOut(const bool)\n";
#endif

  isOut_ = isOut;
}
